/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mnstudent.datatranferobject;

import java.util.Objects;

/**
 *
 * @author lee
 */
public class FacultyDTO {
    
    //<editor-fold defaultstate="collapsed" desc=" Attributes ">
    private String m_FacultyID;
    private String m_NameOfFaculty;
    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc=" Properties ">
    public String getFacultyID(){ return this.m_FacultyID;};
    
    public void setFacultyID(String strFacultyID) { this.m_FacultyID = strFacultyID;};
    
    public String getNameOfFaculty(){return this.m_NameOfFaculty;};
    
    public void setNameOfFaculty(String strNameOfFaculty){ this.m_NameOfFaculty = strNameOfFaculty;};
    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc=" Method ">
    public FacultyDTO(){
        
    }
    
    public FacultyDTO(String strFacultyID, String strNameOfFaculty){  
        this.m_FacultyID = strFacultyID;
        this.m_NameOfFaculty = strNameOfFaculty;
    }
    
    @Override
    public String toString() {
        return m_NameOfFaculty;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 43 * hash + Objects.hashCode(this.m_FacultyID);
        hash = 43 * hash + Objects.hashCode(this.m_NameOfFaculty);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final FacultyDTO other = (FacultyDTO) obj;
        if (!Objects.equals(this.m_FacultyID, other.m_FacultyID)) {
            return false;
        }
        if (!Objects.equals(this.m_NameOfFaculty, other.m_NameOfFaculty)) {
            return false;
        }
        return true;
    }
    //</editor-fold>

    
}
